/// FileName: icon_menu
/// Author: admin
/// Date: 2021-06-10 16:53
/// Description: 图标菜单

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'icon_menu_item.dart';


class IconMenu extends StatelessWidget {
  IconMenu({required this.iconList});

  final List<IconMenuItem> iconList;

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 0.2,
      shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(10)),
      ),
      margin: EdgeInsets.all(10.r),
      color: Colors.white,
      child: IntrinsicHeight(
          child: Wrap(
        crossAxisAlignment: WrapCrossAlignment.center,
        alignment: WrapAlignment.spaceBetween,
        children: this.iconList,
      )),
    );
  }
}
